.page {
  padding: 20rpx;
  background: #f6f6f6;
  min-height: 100vh;
}

.new-user-notice {
  background: #fff;
  border-radius: 20rpx;
  padding: 30rpx;
  margin-bottom: 20rpx;
  border: 2rpx solid #ff9a9e;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}

.consumption-notice {
  background: #fff;
  border-radius: 20rpx;
  padding: 30rpx;
  margin-bottom: 20rpx;
  border: 2rpx solid #ffa940;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}

.notice-content {
  display: flex;
  align-items: center;
}

.notice-icon {
  margin-right: 20rpx;
  
  .iconfont {
    font-size: 40rpx;
    color: #ff9a9e;
  }
}

.consumption-notice .notice-icon .iconfont {
  color: #ffa940;
}

.notice-text {
  flex: 1;
}

.notice-title {
  display: block;
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 10rpx;
}

.notice-subtitle {
  display: block;
  font-size: 24rpx;
  color: #666;
  line-height: 1.4;
}

.invite-card {
  background: #fff;
  border-radius: 16rpx;
  padding: 40rpx;
  margin-bottom: 20rpx;
}

.card-header {
  text-align: center;
  margin-bottom: 40rpx;
}

.card-title {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 10rpx;
}

.card-subtitle {
  font-size: 24rpx;
  color: #666;
  display: block;
}

.qrcode-section {
  text-align: center;
  margin-bottom: 40rpx;
}

.qrcode-container {
  width: 200rpx;
  height: 200rpx;
  margin: 0 auto 20rpx;
  background: #f5f5f5;
  border-radius: 8rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.qrcode-img {
  width: 180rpx;
  height: 180rpx;
}

.qrcode-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(245, 245, 245, 0.9);
  border-radius: 8rpx;
}

.loading-spinner {
  width: 40rpx;
  height: 40rpx;
  border: 4rpx solid #f3f3f3;
  border-top: 4rpx solid #007aff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10rpx;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 20rpx;
  color: #666;
}

.qrcode-tip {
  font-size: 24rpx;
  color: #666;
}

.invite-code-section,
.invite-url-section {
  margin-bottom: 20rpx;
}

.invite-label {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 20rpx;
  display: block;
}

.invite-code-row,
.invite-url-row {
  display: flex;
  align-items: center;
  gap: 20rpx;
}

.invite-code {
  flex: 1;
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
  background: #f5f5f5;
  padding: 20rpx;
  border-radius: 8rpx;
}

.invite-url {
  flex: 1;
  font-size: 24rpx;
  color: #666;
  background: #f5f5f5;
  padding: 20rpx;
  border-radius: 8rpx;
  word-break: break-all;
  line-height: 1.4;
}

.copy-btn {
  background: #007aff;
  color: white;
  border: none;
  padding: 20rpx 30rpx;
  border-radius: 8rpx;
  font-size: 28rpx;
  white-space: nowrap;
}

.invite-rules {
  background: #fff;
  border-radius: 16rpx;
  padding: 40rpx;
  margin-bottom: 20rpx;
}

.rules-title {
  margin-bottom: 30rpx;
}

.title-text {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 30rpx;
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 20rpx;
}

.rule-icon {
  width: 40rpx;
  height: 40rpx;
  background: #007aff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24rpx;
  font-weight: bold;
  flex-shrink: 0;
}

.rule-content {
  flex: 1;
}

.rule-title {
  font-size: 28rpx;
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 8rpx;
}

.rule-desc {
  font-size: 24rpx;
  color: #666;
  line-height: 1.5;
}

// 海报相关样式
.poster-section {
  margin-top: 30rpx;
  text-align: center;
}

.generate-poster-btn {
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  border: none;
  padding: 25rpx 50rpx;
  border-radius: 50rpx;
  font-size: 32rpx;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rpx;
  box-shadow: 0 8rpx 20rpx rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
  
  &:active {
    transform: translateY(2rpx);
    box-shadow: 0 4rpx 10rpx rgba(255, 107, 107, 0.3);
  }
  
  &:disabled {
    background: #ccc;
    box-shadow: none;
    transform: none;
  }
  
  .iconfont {
    font-size: 36rpx;
  }
}

// 海报预览样式
.poster-preview {
  background: #fff;
  border-radius: 16rpx;
  padding: 30rpx;
  margin-top: 20rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}

.preview-title {
  text-align: center;
  margin-bottom: 30rpx;
  
  text {
    font-size: 36rpx;
    font-weight: bold;
    color: #333;
  }
}

.preview-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30rpx;
  background: #f8f8f8;
  border-radius: 16rpx;
  padding: 30rpx;
  border: 2rpx dashed #e0e0e0;
}

.preview-image {
  max-width: 500rpx;
  max-height: 650rpx;
  border-radius: 12rpx;
  box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  
  &:active {
    transform: scale(0.98);
  }
}

.preview-actions {
  display: flex;
  gap: 30rpx;
  justify-content: center;
}

.preview-btn {
  background: #f5f5f5;
  color: #666;
  border: 2rpx solid #e0e0e0;
  padding: 25rpx 50rpx;
  border-radius: 50rpx;
  font-size: 30rpx;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 150rpx;
  
  &:active {
    transform: translateY(2rpx);
  }
}

// 海报展示样式
.poster-display {
  background: #fff;
  border-radius: 16rpx;
  padding: 30rpx;
  margin-top: 20rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}

.display-title {
  text-align: center;
  margin-bottom: 30rpx;
  
  text {
    font-size: 36rpx;
    font-weight: bold;
    color: #333;
  }
}

.display-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30rpx;
  padding: 20rpx;
}

.display-image {
  max-width: 700rpx;
  max-height: 1000rpx;
  width: 100%;
  height: auto;
  border-radius: 12rpx;
  box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  
  &:active {
    transform: scale(0.98);
  }
}

.display-actions {
  display: flex;
  gap: 30rpx;
  justify-content: center;
}

.action-btn {
  background: #f5f5f5;
  color: #666;
  border: 2rpx solid #e0e0e0;
  padding: 25rpx 50rpx;
  border-radius: 50rpx;
  font-size: 30rpx;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 150rpx;
  
  &.primary {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border-color: #ff6b6b;
    box-shadow: 0 6rpx 16rpx rgba(255, 107, 107, 0.3);
  }
  
  &:active {
    transform: translateY(2rpx);
  }
}


